﻿using Cos.Core.Model.Security;

namespace Cos.Module.Security.Data
{
    public interface ISecurityRepository
    {
        //User Login(string userName, string password);

        User GetUser(int userId);

        User GetUser(string userName);

        bool ValidatePassword(User user, string passwordHash);

        void UpdateUser(User user);

        void UpdatePassword(User user, string password);
    }
}
